#!/bin/bash

url=registry.cn-hangzhou.aliyuncs.com/google_containers
version=v1.19.0
# images=(`kubeadm config images list --kubernetes-version=$version|awk -F '/' '{print $2}'`)
# for imagename in ${images[@]} ; do
#   echo $imagename
#   docker pull $url/$imagename
#   docker tag $url/$imagename k8s.gcr.io/$imagename
#   docker rmi -f $url/$imagename
# done

docker pull $url/pause:3.2
docker tag $url/pause:3.2 k8s.gcr.io/pause:3.2
docker rmi -f $url/pause:3.2